PROJECT(TicTacToe)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
FIND_PACKAGE(Qt4 REQUIRED)

SET(tictactoe_SOURCES main.cpp TicTacToe.cpp)
SET(tictactoe_HEADERS TicTacToe.h)

QT4_WRAP_CPP(tictactoe_HEADERS_MOC ${tictactoe_HEADERS})

INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(${QT_DEFINITIONS})

ADD_EXECUTABLE(tictactoe ${tictactoe_SOURCES} 
    ${titactoe_HEADERS_MOC})
TARGET_LINK_LIBRARIES(tictactoe ${QT_LIBRARIES})
